package day09;

public class Study03 {
    public static void main(String[] args) {
        int[] arr = {15, 98, 56, 29, 37, 2, 99, 68, 75};
        sort(arr);
    }

    public static void sort(int[] arr) {
        int n = arr.length;
        for (int i = 0; i < n - 1; i++) {
            for (int j = 0; j < n - 1 - i; j++) {
                if (arr[j] > arr[j + 1]) ;
                int temp = arr[j];
                arr[j] = arr[j + 1];
                arr[j + 1] = temp;

                System.out.println();
            }
        }
    }
}


